package com.photography.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@TableName("customer")
public class Customer implements Serializable {
    @TableId(type = IdType.INPUT)
    private String    id;                //  客户ID
    private String    name;              //  名字
    private String    sex;               //  性别
    private String    phonenumber;       //  手机号
    private String    wechat;            //  微信号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date      birthdate;        //  出生日期
    private Date      created;         //  创建时间
    private Date      updated;         //  创建时间
    private Integer   status;         //状态。 可选值:1(正常),0(删除)
    private String     note;
    @TableField(exist = false)
    private String    BirthdateString;
    @TableField(exist = false)
    private List<Order> orders;

    @TableField(exist = false)
    private String  ordersidString;

    @TableField(exist = false)
    private String starttime;

    @TableField(exist = false)
    private String endtime;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getOrdersidString() {
        return ordersidString;
    }

    public void setOrdersidString(String ordersidString) {
        this.ordersidString = ordersidString;
    }

    public String getBirthdateString() {
        return BirthdateString;
    }

    public void setBirthdateString(String birthdateString) {
        BirthdateString = birthdateString;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", wechat='" + wechat + '\'' +
                ", birthdate=" + birthdate +
                ", created=" + created +
                ", updated=" + updated +
                ", status=" + status +
                ", orders=" + orders +
                '}';
    }
}
